using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Win32;

/// Released under MS-PL (Microsoft permissive license):  http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx 
/// Copyright (c) Microsoft Corporation.  All rights reserved.
namespace NLarge
{
    internal class RegistryHelp
    {
        private static string BasePath = @"Software\NLarge\";
        public static void WriteEntry(string name, string entry)
        {
            RegistryKey regKeyAppRoot = Registry.CurrentUser.CreateSubKey(BasePath);
            regKeyAppRoot.SetValue(name, entry);
        }

        public static string ReadEntry(string name)
        {
            RegistryKey regKeyAppRoot = Registry.CurrentUser.CreateSubKey(BasePath);
            string s = regKeyAppRoot.GetValue(name) as string;
            return s;

        }
    }
}
